'use strict';
import React, {Component, PropTypes} from 'react';
import './style.less';

export default class ComponentBox extends Component {
    constructor( props ) {
        super( props );
    }
    render(){
        let { item } = this.props;
        return (
            <div className="product">
                <nobr className="title">
                    {item.title}
                </nobr>
                {
                    item.price ?
                        <div className="price">
                            ￥ {item.price}
                        </div>:null
                }
                <div className="try_btn" onClick={this.props.onSelectProductItem.bind(this,item.id)}>
                    点击试穿
                </div>
            </div>
        )
    }
}